package com.uwo.house.service;

import com.uwo.house.beans.Member;
import com.uwo.house.beans.User;
import com.uwo.house.beans.request.AddStaffReq;
import com.uwo.house.beans.request.ClientModifyReq;
import com.uwo.house.beans.request.ModifyStaffReq;
import com.uwo.house.beans.response.StaffUserResp;
import com.uwo.house.beans.response.UserResp;

import java.util.Date;
import java.util.List;

/**
 * Created by yanhao on 2017/6/16.
 */
public interface IUserService {

    boolean validatePwd(User user, String password, String oldPassword);

    boolean modifyMobile(User user, String mobile);

    boolean modifyPassword(User user, String password);

    User selectByUsername(String username);

    User selectByUnionid(String unionid);

    Member selectById(String mid);

    boolean register(String mobile, String password);

    List<UserResp>getUsers(String userName, Date dateFrom,Date dateTo);

    int deleteUser(String id);

    List<StaffUserResp> getStaffList(int roleId, String userName, String name, String address,String supplyClass);

    int modifyStaffUser(ModifyStaffReq modifyStaffReq);

    int addStaffUser(AddStaffReq addStaffReq);

    User getUserByMobile(String mobile);

    UserResp getUserByUserName(String username);

    String getRoleIdByUserId(String userId);

    int checkMobile(String checkMobile);

    String getNameByUserId(String userId);

    StaffUserResp getStaffUserInfo(String userId);

    User selectUserById(String userId);

    int modifyClientInfo(ClientModifyReq clientModifyReq);

    int modifyStaffPassword(User user, String password);

    int modifyAliAccount(String aliAccount, String userId);
}
